<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>flex布局初体验</title>
    <style>
        div {
            margin: 20px auto;
            display: flex;
            /* width: 60%; */
            width: 40%;
            height: 300px;
            background-color: antiquewhite;
            /* flex-direction: column; */
            /* flex-direction: row-reverse; */
            /* justify-content: space-around; */
            /* justify-content: flex-end; */
            /* justify-content: center; */
            /* justify-content: space-between; */
            /* flex-wrap: wrap; */
            /* align-items: center; */
            /* align-items: stretch; */
            /* align-content: flex-start; */
            /* align-content: center; */
            /* align-content: space-around; */
            /* align-content: space-between; */
            flex-flow: row wrap;
        }
        div span {
            width: 150px;
            /* flex: 1; */
            height: 50px;
            /* height: 100px; */
            background-color: crimson;
            margin: 5px;
        }
    </style>
</head>
<body>
<div>
    <span>1</span>
    <span>2</span>
    <span>3</span>
    <span>4</span>
    <span>5</span>
    <span>6</span>
    <span>7</span>
    <span>8</span>
</div>    
</body>
</html>